package com.fly.consumers.feign;

import java.util.HashMap;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.fly.consumers.feign.fallback.HelloFallback;

@FeignClient(value ="M-SKILL-CLIENT",fallback = HelloFallback.class)
public interface HelloFeign {

	 @RequestMapping(value = "/test",method = RequestMethod.GET)
	 String hello();
	 
	 @PostMapping("/hello2")
	 String hello2(@RequestBody HashMap<String, String> param);
}
